package com.tencreat.domain.pt;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户自动拼团列对象 mall_pt_user_auto
 *
 * @author tencreat
 * @date 2021-12-15
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_user_auto")
public class MallPtUserAuto extends BaseEntity<MallPtUserAuto> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 拼团id */
    @Excel(name = "拼团id")
    @ApiModelProperty(value= "拼团id")
    @TableField("`pt_id`")
    private Long ptId;

    @Excel(name = "拼团商品id")
    @ApiModelProperty(value= "拼团商品id")
    @TableField("`pt_goods_id`")
    private Long ptGoodsId;

    @Excel(name = "地址id")
    @ApiModelProperty(value= "地址id")
    @TableField("`address_id`")
    private Integer addressId;

    @Excel(name = "是否开启 true是")
    @ApiModelProperty(value= "是否开启 true是")
    @TableField("`status`")
    private Boolean status;


    /** $column.columnComment */
    @Excel(name = "拼团id")
    @ApiModelProperty(value= "拼团id")
    @TableField("`uuid`")
    private Long uuid;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
